<form action="<?php e_action("modifySubmit");?>" method="post">
    <fieldset>
        <input type="hidden" id="id" name="id" value="<?php echo $r['id'];?>">
        <legend></legend>
        <label for="username">用户名</label>
        <input type="text" id="username" name="username" value="<?php echo $r['admin_info']['username'];?>" readonly><br/>
        <label for="email">邮箱</label>
        <input type="text" id="email" name="email" value="<?php echo $r['admin_info']['email'];?>" readonly><br/>
        <label for="levels">管理权限</label><br/>
        <?php foreach($r['levels'] as $k=>$v){if(($k-2)%5==0)echo "<br/>"?>
            <label><input type="checkbox" name="levels[]" value="<?php echo $k;?>"
                    <?php if(in_array($k,explode(",",$r['admin_info']['levels']))) echo "checked"; ?>/>
                <?php echo $v;?>
            </label>
        <?php }?><br/><br/>
        <input type="submit" value="提交">
    </fieldset>

</form>